<?php if (SET != 1) die(); ?>
<?php if (!isset($_GET['export'])) die(); ?>
<?php

	if ($_GET['export'] == config("master_data_shared_key")) {
		
		if (config("slave") != true) {
			
			
			echo "###allowed_macs###\n";
			echo file_get_contents(config("root")."data/allowed_macs");

			echo "###allowed_ports_tcp###\n";
			echo file_get_contents(config("root")."data/allowed_ports_tcp");

			echo "###allowed_ports_udp###\n";
			echo file_get_contents(config("root")."data/allowed_ports_udp");

			echo "###public_ips###\n";
			echo file_get_contents(config("root")."data/public_ips");
			
			echo "###users###\n";
			echo file_get_contents(config("root")."data/users.xml");
			
			
		} else {
			echo "###ERROR: THIS IS A SLAVE SERVER";
		}
		
	} else {
		echo "###ERROR: WRONG SHARED KEY";
	}

?>
